 <!DOCTYPE html>
 <html>
     <head>
         <meta charset="utf-8" />
         <title>图片上传</title>
     </head>
     <body>
         <h2>图片上传</h2>
     <form action="../../save/saveImg" method="post" enctype="multipart/form-data">
         图片:<input type="file" id="id" name="upload"/><br/>
         <input type="submit" value="提交"/>
     </form>
     <script type="text/javascript">
     console.log(document.getElementById('id').value);
     </script>
     </body>
 </html>
